<template>
	<view class="">
		<!-- v-for="(item,index) in list" -->
		<view class="NoOne" @click="goInfo">
			<view class="NoOne-title-wrap">
				<view class="NoOne-title-img mr-8">
					<!-- todolxt -->
					<image :src="list.icon"style="width: 46rpx; height: 46rpx;" />
				</view>
				<view class="NoOne-title-word mr-8">
					{{list.name}}
				</view>
				<view class="NoOne-title-platform">
					正规平台
				</view>
			</view>
			<view class="NoOne-content-wrap">
				<view class="NoOne-content-desc">预估额度（元）</view>
				<view class="NoOne-content-actionWithNum">
					<view class="NoOne-content-num">{{list.quotaUpper}}</view>
					<view class="NoOne-content-btn" @click="goInfo(list)">立即申请</view>
				</view>
				<view class="NoOne-content-tips">
					<!-- todolxt 替换年利率及期限 -->
					<view>年利率3.96%起</view>
					<view class="divider">|</view>
					<view>期限{{list.usefulLife}}个月</view>
				</view>
			</view>

			<view class='NoOne-absolute-wrap'>
				<image class="NoOne-absolute-img" src="/static/index/Group 1142815150.png" />
			
			</view>
		</view>

	</view>
</template>

<script>
	export default {
		props: {
			list: {
				type: Object,
			}
		},
		data() {
			return {

			}
		},
		methods: {
			goInfo(item) {
				this.$emit("goInfo", this.list)
			}
		}

	}
</script>

<style lang="scss" scoped>
	.NoOne {
		position: relative;
		padding: 16rpx 20rpx;
		border-radius: 16rpx;
		background: linear-gradient(to bottom right, #5A77E5, #5199FD);
		.NoOne-title-wrap {
			display: flex;
			flex-direction: row;
			justify-content: start;
			align-items: center;
			color: #fff;
			margin-bottom: 12rpx;
			.mr-8 {
				margin-right: 16rpx;
			}
			.NoOne-title-platform {
				border: solid 2rpx #fff;
				font-size: 16rpx;
				padding: 4rpx 10rpx;
			}
		}

		.NoOne-content-wrap {
			padding: 36rpx 40rpx;
			background-color: #fff;
			border-radius: 16rpx;
			.NoOne-content-desc {
				font-size: 28rpx;
				font-weight: 500;
				color: #333;
			}
			.NoOne-content-actionWithNum {
				display: flex;
				justify-content: space-between;
				margin: 16rpx 0;
				.NoOne-content-num {
					color: #FF0000;
					font-weight: 500;
					font-size: 40rpx;
				}
				.NoOne-content-btn {
					background: linear-gradient(to bottom right, #6CB0F2, #3C75F2);
					border-radius: 96rpx;
					padding: 10rpx 40rpx;
					color: #fff;
					display: flex;
					justify-content: center;
					align-items: center;
					font-weight: 400;
				}
				
			}
			.NoOne-content-tips {
				color: #999;
				font-size: 24rpx;
				display: flex;
				flex-direction: row;
				.divider {
					margin: 0 8rpx
				}
			}
		}
		
		.NoOne-absolute-wrap {
			position: absolute;
			top: 0;
			right: 0;
			display: flex;
			flex-direction: row;
			align-items: center;
			color: #fff;
			border-radius: 0 16rpx 0 16rpx;
			font-size: 18rpx;
			.NoOne-absolute-img {
				width: 224rpx;
				height: 46rpx;

			}
			
		}
	}

</style>